cmake_minimum_required(VERSION 3.10)
project(MySchedule)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(OpenSSL REQUIRED)

if(OPENSSL_FOUND)
    message(STATUS "Found OpenSSL: ${OPENSSL_VERSION}")
    include_directories(${OPENSSL_INCLUDE_DIR})
else()
    message(FATAL_ERROR "OpenSSL not found!")
endif()

add_executable(myschedule
    main.cc
    function.cc
    task.h
    user.h
    function.h  
)

target_link_libraries(myschedule PRIVATE ${OPENSSL_LIBRARIES})

install(TARGETS myschedule DESTINATION bin)
